module.exports = function($modal, $state, $resource){
    
        return {
            restrict : 'A',
            link : function(scope, elements, attr){
                if (scope.$last) {
                    // $('#treetable').unbind();
                    // setTimeout("$(\"#treetable\").treeTable({expandLevel : 3}).show(); ",1);
                    $('#treetable3').unbind();
                    setTimeout("$(\"#treetable3\").treeTable({expandLevel : 3}).show(); ",1);
                }
            }
        };
    
    };
    
    